﻿using System.Collections.Generic;
using DevFramework.Business.Abstract;
using DevFramework.Business.DependencyResolvers.Ninject;
using DevFramework.Entities.Concrete;
using DevFramework.Business.Abstract;

namespace DevFramework.Service
{
    public class LanguageService : ILanguageService
    {
        private readonly ILanguageService _langaugeService;
        public LanguageService()
        {
            _langaugeService = InstanceFactory<ILanguageService>.GetInstance();
        }

        public List<Language> GetAll()
        {
            return _langaugeService.GetAll();
        }

        public Language Get(string code)
        {
            return _langaugeService.Get(code);
        }
    }
}
